<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<%@ include file="/common/CimsCommon.jsp" %>
   <title>查看模板</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link rel="stylesheet" href="<%=basePath%>/css/cims/cmmBase.css">
   <script type="text/javascript" src="${basePath}/js/cims/publicJs/modelManage.js"></script>
   
    <script type="text/javascript">
   
   		$(document).ready(function(){
   			var templateType = $("#templateTypeNone").val();
   			$("#templateType option[value='"+templateType+"']").attr("selected","true");
   			$("#templateType").attr("disabled","disabled");
   			var templateImportField ="${dto.columnName}";
   			$("#templateImportField").text(templateImportField);
   			$("#templateImportField").attr("disabled","disabled");
   			var name = $("#templateType option:selected").text();
			
			$("#exportName").text("已选"+name+"导出字段");
   		});
   
   </script>
   
</head>
  
<body style="background-color:#FFFFFF">
<div id="formPageSwap">
  <br/>
<form id="addNewsFormData" name="addNewsFormData" isCheck="true" action="">
 <table id="addNewsTableId" class="formTableSwap" border="0" align="center" cellpadding="0" cellspacing="1" >

<tr>
	<td colspan="6" align="center" class="thTop">模板信息</td>
</tr>

<tr>
  <th> 合作机构 ：</th>
  <td >
  	<input disabled="disabled" style="display:none;" id="templateTypeNone" name="templateTypeNone" value="${dto.templateType}">
 	<input disabled="disabled" id="cooperorg" name="cooperorgCode" value="${dto.cooperorgName}"> 
  </td>
  <th> 合约名称：</th>
  <td colspan="6"> 
  <input disabled="disabled" id="contract" name="contractCode" value="${dto.contractName}"> 
  </td>
</tr>
<tr>
  <th> 模板编码：</th>
  <td > 
  <input disabled="disabled" type="text"  id="templateCode" name="templateCode" notNull="false"  value="${dto.templateCode}" />
  </td>
  <th> 模板名称：</th>
  <td > 
  <input disabled="disabled" type="text"  id="fileName" name="fileName" notNull="false"  value="${dto.fileName}" />
  </td>
  
  <th> 应用场景 ：</th>
  <td> 
  <syscode:dictionary name="templateType" extendProperty="notNull=false" onchange="addFields(this)" codeType="TEMPLATE_TYPE" id="templateType"	className="text" type="select"/>
  </td>
</tr>

<tr>
	<td colspan="6" align="center" class="thTop">字段信息</td>
</tr>

<tr>
  
  <td style="text-align: center;" colspan="6"> 
  <p id="exportName"> 已选导出字段 ：</p>
	<textarea  class="textareField" id="templateImportField" rows="5" cols="100"></textarea>
  </td>
  
</tr>

  </table>

<!-- 保存 关闭 按钮 在 查询页面进行控制 -->  
</form>
<div class="expandToolbar">
		<span class="submitBtn mouseName" onclick="parent.tabs.close()">关闭</span>
</div>
</div>

</body>

<script type="text/javascript">
   $(document).ready(function(){
   	checkedInit();
	});
</script>
  
</html>
